"use client"
import { useContext, useEffect, useRef, useState } from "react";
import { useNodeMap } from "@/store/client/modules/reactdndStore/useNode";
import { Row } from "antd";
import SubassemblyView from "../../..";
const DraggableRowView: React.FC<reactDndProps> = ({ data }) => {
    const { boxIndex } = useNodeMap()
    useEffect(() => {

    })
    return (<Row className={`min-h-20 `}>
        {boxIndex[data.id]?.length !== 0 && boxIndex[data.id]?.map((node: any, index: any) => {
            return <SubassemblyView key={node} id={node} />
        })}
    </Row>

    )
}
export default DraggableRowView;